package no.saiboten.tourbuilder.tournament;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import no.saiboten.tourbuilder.user.User;

public class Tournament {
	private String id;
	private Date startdate;
	private Date endDate;
	private TournamentSize tournamentSize;
	private List<User> users;

	public Tournament() {
		users = new ArrayList<User>();
	}

	@Override
	public String toString() {
		return "Tournament [id=" + id + ", startdate=" + startdate
				+ ", endDate=" + endDate + ", tournamentSize=" + tournamentSize
				+ ", users=" + users + "]";
	}

	public List<User> getUsers() {
		return users;
	}

	public void addUser(User user) {
		this.users.add(user);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getStartdate() {
		return startdate;
	}

	public void setStartdate(Date startdate) {
		this.startdate = startdate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public TournamentSize getTournamentSize() {
		return tournamentSize;
	}

	public void setTournamentSize(TournamentSize tournamentSize) {
		this.tournamentSize = tournamentSize;
	}
}
